<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title> 最新商品评论 - <?=SITE_NAME?> </title>
<?php include VIEWS.'header.html'?>
<link rel="alternate" type="application/rss+xml" title="<?=SITE_NAME?>产品评论' : ''?>" href="<?php echo $_servername?>/comments/all/xml/" />

<style type="text/css">
b.master {
    color: #FF6240;
    padding: 2px;
}

b.guest {
    color: #999;
    padding: 2px;
}

b.default {
    color: #FF6240;
    padding: 2px;
}
</style>
</head>

<body>
<?php include VIEWS.'topbar.html'?>

<div id="content">
    <?php include VIEWS.'leftnav.html'?>

    <div id="right">
    <?php include VIEWS.'sidesearch.html'?>
    
    <h1>最新商品评论 &nbsp; <a title="使用RSS订阅本页更新" tabindex="100" href="<?php echo $_servername?>/comments/all/xml"><img width="30" height="14" src="/images/rss.gif" alt="RSS Feed" /></a></h1>
    <div style="float:right" class="px12">
    &#8250; <script type="text/javascript">needHelp();</script><noscript><a href="<?php echo $_servername?>/forum/service/?from=itemlist" target="_blank">需要帮助？</a></noscript>&nbsp;&nbsp;
    </div>
    <br />
    <br clear="all" />
    <div id="commentlist" class="px12">
    <?php if(count($list)>0) foreach($list as $c):$c_i++;?>
    <div style="background-color:#<?php echo $c_i%2==0 ? 'EEEEEE' : 'F5F5F5'?>;padding:4px;margin:6px;border:1px solid #EEEEEE">
        <a name="c<?php echo $c['id']?>"></a>
        <img width="32" height="32" src="http://www.gravatar.com/avatar.php?gravatar_id=<?php echo md5($c['umail'])?>&amp;size=32&amp;default=<?php echo $_servername?>/images/icon/no-gravatar.gif" align="left" hspace="5" />
        “<?php echo "<a href='/{$c['iid']}'>{$c['name']}</a>"?>”
        <?php echo ($c['istb'] ? '<b class="default">TrackBack:</b>' : '') . 
        ($c['url'] ? "<a href='{$c['url']}' target='_blank'>" : '') . '<b class="'. 
        ($c['isadmin'] ? 'master' : ($c['uid'] ? 'default' : 'guest')) .'">'.
        ($c['uname'] ? $c['uname'] : 'guest').'</b>' . 
        ($c['url'] ? "</a>" : '') . 
        '@'.date('y/m/d H:i', $c['updated'])?>
         (<a href="/comments/<?php echo $c['iid'].'#c'.$c['id']?>" class="px12">永久链接</a></a>)<?php if($session['admin']):?>(<?php echo $c['umail']?>) (<a href="/comments/<?php echo $c['iid']?>?remove=<?php echo $c['id']?>" class="px12" style="color:red">删除</a>)<?php endif?><br />
        <blockquote style="margin:0.6em"><?php echo nl2br($c['body'])?></blockquote></div>
    <?php endforeach?>
    </div>

    <?php /*if($page['next']):?><div style="text-align:right;margin:0.8em"><img alt="" src="/images/icon_arrow_red_right.gif" /><a class="px12" tabindex="3" href=<?php echo $page['url']?>p=<?php echo $page['next']?>>更早的评论</a></div><?php endif*/?>

    <?php
    $list['page'] = $page;
    $_pagevar = '共 <b>%s</b> 条评论';
    $_pagevar = '&nbsp;';
    include VIEWS.'pages.html';
    ?>

    </div>
</div>

<?php include VIEWS.'copyright.html'?>
</body>
</html>
